package cn.itsource.ymcc.openfeign;

import cn.itsource.ymcc.openfeign.factory.MediaOpenfeignFallbackFactory;
import cn.itsource.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "service-media",fallbackFactory = MediaOpenfeignFallbackFactory.class)
public interface MediaOpenfeign {
    @GetMapping("/mediaFile/getMediaByCourseid/{courseId}")
    public JsonResult getMediaByCourseid(@PathVariable("courseId")Long id);
}
